#import <Foundation/Foundation.h>

@class Settings;

@protocol SettingsListener <NSObject>
-(BOOL)settingsChanged:(Settings*)settings error:(NSError**)error;
@end

@interface Settings : NSObject

@property (nonatomic, readonly) NSString* username;
@property (nonatomic, readonly) NSString* password;
@property (nonatomic, readonly) NSString* url;

-(void)subscribeToChanges:(id<SettingsListener>)listener;
-(BOOL)setUsername:(NSString *)username password:(NSString*)password url:(NSString*)url error:(NSError**)error;

@end
